package com.qqt.csr.route.vo.req;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qqt.csr.common.idempotent.RequestKeyParam;
import com.qqt.csr.common.operalog.OperaLogSchema;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 *开启或关闭路由
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(name = "UpdatingRouteRuleEnableReqVO", description = "开启或关闭路由")
public class UpdatingRouteRuleEnableReqVO implements Serializable {
    @Serial
    private static final long serialVersionUID = -5994969866661106202L;

    @Schema(description = "路由规则id",requiredMode = Schema.RequiredMode.REQUIRED)
    @OperaLogSchema(desc = "路由规则id")
    @NotNull(message = "路由规则id不能为空")
    @RequestKeyParam
    private Integer id;

    @Schema(description = "是否启用：0 否；1 是",requiredMode = Schema.RequiredMode.REQUIRED)
    @OperaLogSchema(desc = "是否启用")
    @NotNull(message = "是否启用不能为空")
    @Min(value = 0,message = "是否启用值异常")
    @Max(value = 1,message = "是否启用值异常")
    private Integer enableFlag;

}